/**
 * Created by JetBrains PhpStorm.
 * User: jonatan
 * Date: 1/20/12
 * Time: 11:42 AM
 */

/**
 * AJAX commment rating script
 */

function commentVoteUp(target) {
    $('#CID' + target + '_upVotes').load('/rating/voteCommentUp/' + target);
}

function commentVoteDown(target) {
    $('#CID' + target + '_downVotes').load('/rating/voteCommentDown/' + target);
}

function postVoteUp(target) {
    $('#PID' + target + '_upVotes').load('/rating/votePostUp/' + target);
}

function postVoteDown(target) {
    $('#PID' + target + '_downVotes').load('/rating/votePostDown/' + target);
}